package com.huawei.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.huawei.model.SpuList;
import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;
import java.util.List;

public class Shangpinspu {


    private  int  spu_id;
    private  int   sku_id;
    private  String spu_miaoshu;
    private  String spu_name;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date creation_time;
    private  List<SpuList> spu_guige;
    private  String status;

    private List<Shangpinsku> skuList;


  public Shangpinspu() {



  }

  public Shangpinspu(int spu_id, int sku_id, String spu_miaoshu, String spu_name, Date creation_time, List<SpuList> spu_guige, String status, List<Shangpinsku> skuList) {
    this.spu_id = spu_id;
    this.sku_id = sku_id;
    this.spu_miaoshu = spu_miaoshu;
    this.spu_name = spu_name;
    this.creation_time = creation_time;
    this.spu_guige = spu_guige;
    this.status = status;
    this.skuList = skuList;
  }

  public int getSpu_id() {
    return spu_id;
  }

  public void setSpu_id(int spu_id) {
    this.spu_id = spu_id;
  }

  public int getSku_id() {
    return sku_id;
  }

  public void setSku_id(int sku_id) {
    this.sku_id = sku_id;
  }

  public String getSpu_miaoshu() {
    return spu_miaoshu;
  }

  public void setSpu_miaoshu(String spu_miaoshu) {
    this.spu_miaoshu = spu_miaoshu;
  }

  public String getSpu_name() {
    return spu_name;
  }

  public void setSpu_name(String spu_name) {
    this.spu_name = spu_name;
  }


  public Date getCreation_time() {
    return creation_time;
  }

  public void setCreation_time(Date creation_time) {
    this.creation_time = creation_time;
  }

  public List<SpuList> getSpu_guige() {
    return spu_guige;
  }

  public void setSpu_guige(List<SpuList> spu_guige) {
    this.spu_guige = spu_guige;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public List<Shangpinsku> getSkuList() {
    return skuList;
  }

  public void setSkuList(List<Shangpinsku> skuList) {
    this.skuList = skuList;
  }
}
